package com.sanpu.kxe.business.main.contract;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.business.main.bean.CertificationOutput;

/**
 * Description：身份证校验
 * Created by 薛勇军 on 2019/5/21.
 */

public interface LinkfaceOcrContract {

    interface View extends IBaseExtraView<Presenter> {
        /**
         * 显示身份证信息
         */
        void showIdCardInfo(CertificationOutput output, boolean isNeedUpload);
    }

    interface Presenter extends IBasePresenter {
        /**
         * 查看图片
         */
        void takePhoto(String photo, int code);

        /**
         * 压缩图片
         */
        void onCompress(String filePath, String reName);

        /**
         * 删除缓存图片
         */
        void removeFile(String fileKey);

        /**
         * 上传身份证正反面
         */
        void uploadIdCardInfo();
    }
}
